package routers

import (
	"GO_BACK/controllers"
	"github.com/gin-gonic/gin"
)

func DefaultRouter(gin *gin.Engine) {
	router := gin.Group("/default")
	{
		router.GET("/postgreconnect", controllers.PgConnectController)
	}
}
func ApiRouter(gin *gin.Engine) {
	router := gin.Group("/apicontroller")
	{
		router.POST("/login", controllers.LoginController)
		router.POST("/sendemail", controllers.SendEmailController)
		router.POST("/create", controllers.CreateRecordController)
		router.POST("/register", controllers.RegisterController)
	}
}
